home *** CD-ROM | disk | FTP | other *** search
- Subject: OpenDoc & SOM Memory Allocation
- Sent: 8/14/96 12:11 PM
- Received: 8/14/96 12:31 PM
- From: John Casey, jcasey@ncs-ssc.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
-
- When passing data back and forth between OpenDoc parts and Extensions,
- there is a clear definition of who needs to allocate and free memory.
- Memory is always allocated by the sending object and deleted by the
- receiving object. ODF's FW_CByteArray can be used to help automate this
- process.
-
- When attempting to use the same convention for communicating with
- SOMObjects, I have run into problems with ODF's delete operator override.
- Since my SOM Object does not use OpenDoc's Memory Manager, the new
- performed by the SOMObject is not handled properly when attempting to
- delete the received data in the OpenDoc Part. To complicate problems, it
- appears that CodeWarrior's C++ compiler ignores the scope operator when I
- attempt to bypass OpenDoc's Memory manager by calling ::delete.
-
- So ..... what is the "official" convention for memory management of data
- passed between OpenDoc Parts and SOMObjects?
-
-
- ===========================================================================
- =
- John Casey Mail: jcasey@ncs-ssc.com
- Vice President Web:
- http://www.ncs-ssc.com
- Nation Computer Services FAX: (601) 689-8130
- ===========================================================================
- =
-
-